#!/usr/bin/env bash
export PS4="+\${LINENO} "
exec 3>&1
echo "exec 1>testout"
exec 1>testout

echo "This is a test of redirecting all outpur"
echo "from a scripr to another file."
echo "without having to redirect every individual line"
echo "Tish should go to screen." >&3
exec 1>&3
echo "This output should go to the testout file "
echo "exec 2>testerror"
exec 2>testerror
echo "but this should go to the testerror file " >&2

